Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write slot as atomic batch #422

Merged
merged 2 commits into from
Jun 21, 2023
Merged

Write slot as atomic batch #422

merged 2 commits into from
Jun 21, 2023

Conversation

preston-evans98
Copy link
Member

Description

This commit updates the ledger DB so that all components of a slot are written as batch. This should both improve efficiency and eliminate some potential concurrency bugs.

Linked Issues

Testing

Existing unit tests pass. cc @theochap @citizen-stig - let's see if we can reproduce the issue from #417 after this change or not

Copy link
Member

@cemozerr cemozerr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@codecov
Copy link

codecov bot commented Jun 20, 2023

Codecov Report

Merging #422 (600c178) into main (758bb4e) will increase coverage by 0.0%.
The diff coverage is 100.0%.

Impacted Files Coverage Δ
full-node/db/sov-db/src/ledger_db/mod.rs 91.5% <100.0%> (+0.4%) ⬆️

@citizen-stig
Copy link
Member

@preston-evans98 Do we have a test in main or this branch which has failing case? Otherwise we are blind.

Maybe this PR should be opened against #403, and merged there first?

@preston-evans98 preston-evans98 merged commit f54d926 into main Jun 21, 2023
@preston-evans98 preston-evans98 deleted the preston/db-improvements branch June 21, 2023 18:37
neysofu pushed a commit that referenced this pull request Jun 27, 2023
* Write slot as atomic batch

* Remove TODO
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants